import Vue from 'vue';

const basePath = 'invoice';

export const list = (params) => {
    return Vue.prototype.$u.get(basePath + '/list', params);
};
export const detail = (params) => {
    return Vue.prototype.$u.get(basePath + '/detail', params);
};
export const action = (params) => {
    return Vue.prototype.$u.post(basePath + '/action', params);
};
export const remove = (params) => {
    return Vue.prototype.$u.delete(basePath + '/remove', params);
};
export const setDefault = (params) => {
    return Vue.prototype.$u.put(basePath + '/setDefault', params);
};
export const list_options = (params) => {
    return Vue.prototype.$u.get(basePath + '/list_options', params);
};
